package com.funny.stock.trade.dao.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @Description  
 * @Author  pengl
 * @Date 2020-05-17 
 */

@Entity
@Table ( name ="t_grid_trade_plan" )
public class GridTradePlanDO  implements Serializable {


	/**
	 * ID
	 */
   	@Column(name = "id" )
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Id
	private Long id;

	@Column(name = "compose_id" )
	private Long composeId;

	/**
	 * 代码
	 */
   	@Column(name = "stock_code" )
	private String stockCode;

	/**
	 * 名称
	 */
   	@Column(name = "stock_name" )
	private String stockName;

	/**
	 * 基准价
	 */
   	@Column(name = "base_price" )
	private BigDecimal basePrice;

	/**
	 * 每笔交易数量
	 */
   	@Column(name = "trade_stock_num" )
	private Long tradeStockNum;

	/**
	 * 上涨抛出幅度
	 */
   	@Column(name = "increase_per" )
	private BigDecimal increasePer;

	/**
	 * 下跌买入幅度
	 */
   	@Column(name = "decrease_per" )
	private BigDecimal decreasePer;

	/**
	 * 卖出锁定筹码类型0,1
	 */
   	@Column(name = "sell_lock_type" )
	private Integer sellLockType;

	/**
	 * 锁定剩余最低数量
	 */
   	@Column(name = "lock_stock_num" )
	private Long lockStockNum;

	/**
	 * 锁定连续卖出笔数
	 */
   	@Column(name = "sell_total_stock_num" )
	private Long sellTotalStockNum;

	/**
	 * 买入锁定筹码类型0，1
	 */
   	@Column(name = "buy_lock_type" )
	private Integer buyLockType;

	/**
	 * 连续买入最大金额
	 */
   	@Column(name = "buy_total_price" )
	private BigDecimal buyTotalPrice;

	/**
	 * 连续买入最大笔数
	 */
   	@Column(name = "buy_total_stock_num" )
	private Long buyTotalStockNum;

	/**
	 * 成交价类型
	 */
   	@Column(name = "trust_price" )
	private String trustPrice;

	/**
	 * 交易区间最高价格
	 */
   	@Column(name = "high_price_val" )
	private BigDecimal highPriceVal;

	/**
	 * 交易区间最低价格
	 */
   	@Column(name = "low_price_val" )
	private BigDecimal lowPriceVal;

	/**
	 * 高抛拐点
	 */
   	@Column(name = "high_breakpoint" )
	private BigDecimal highBreakpoint;

	/**
	 * 低吸拐点
	 */
   	@Column(name = "low_breakpoint" )
	private BigDecimal lowBreakpoint;

	/**
	 * 创建ID
	 */
   	@Column(name = "create_id" )
	private Long createId;

	/**
	 * 创建时间
	 */
   	@Column(name = "create_time" )
	private Date createTime;

	/**
	 * 更新ID
	 */
   	@Column(name = "update_id" )
	private Long updateId;

	/**
	 * 更新时间
	 */
   	@Column(name = "update_time" )
	private Date updateTime;

	/**
	 * 计划状态.未启动0，交易中1，已停止2
	 */
   	@Column(name = "status" )
	private Integer status;

	/**
	 * 是否撤单
	 */
   	@Column(name = "is_cancel_order" )
	private Integer isCancelOrder;

	@Column(name = "is_delete" )
	private Integer isDelete;

	public Long getComposeId() {
		return composeId;
	}

	public void setComposeId(Long composeId) {
		this.composeId = composeId;
	}

	public Integer getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getStockCode() {
		return this.stockCode;
	}

	public void setStockCode(String stockCode) {
		this.stockCode = stockCode;
	}

	public String getStockName() {
		return this.stockName;
	}

	public void setStockName(String stockName) {
		this.stockName = stockName;
	}

	public BigDecimal getBasePrice() {
		return this.basePrice;
	}

	public void setBasePrice(BigDecimal basePrice) {
		this.basePrice = basePrice;
	}

	public Long getTradeStockNum() {
		return this.tradeStockNum;
	}

	public void setTradeStockNum(Long tradeStockNum) {
		this.tradeStockNum = tradeStockNum;
	}

	public BigDecimal getIncreasePer() {
		return this.increasePer;
	}

	public void setIncreasePer(BigDecimal increasePer) {
		this.increasePer = increasePer;
	}

	public BigDecimal getDecreasePer() {
		return this.decreasePer;
	}

	public void setDecreasePer(BigDecimal decreasePer) {
		this.decreasePer = decreasePer;
	}

	public Integer getSellLockType() {
		return this.sellLockType;
	}

	public void setSellLockType(Integer sellLockType) {
		this.sellLockType = sellLockType;
	}

	public Long getLockStockNum() {
		return this.lockStockNum;
	}

	public void setLockStockNum(Long lockStockNum) {
		this.lockStockNum = lockStockNum;
	}

	public Long getSellTotalStockNum() {
		return this.sellTotalStockNum;
	}

	public void setSellTotalStockNum(Long sellTotalStockNum) {
		this.sellTotalStockNum = sellTotalStockNum;
	}

	public Integer getBuyLockType() {
		return this.buyLockType;
	}

	public void setBuyLockType(Integer buyLockType) {
		this.buyLockType = buyLockType;
	}

	public BigDecimal getBuyTotalPrice() {
		return this.buyTotalPrice;
	}

	public void setBuyTotalPrice(BigDecimal buyTotalPrice) {
		this.buyTotalPrice = buyTotalPrice;
	}

	public Long getBuyTotalStockNum() {
		return this.buyTotalStockNum;
	}

	public void setBuyTotalStockNum(Long buyTotalStockNum) {
		this.buyTotalStockNum = buyTotalStockNum;
	}

	public String getTrustPrice() {
		return this.trustPrice;
	}

	public void setTrustPrice(String trustPrice) {
		this.trustPrice = trustPrice;
	}

	public BigDecimal getHighPriceVal() {
		return this.highPriceVal;
	}

	public void setHighPriceVal(BigDecimal highPriceVal) {
		this.highPriceVal = highPriceVal;
	}

	public BigDecimal getLowPriceVal() {
		return this.lowPriceVal;
	}

	public void setLowPriceVal(BigDecimal lowPriceVal) {
		this.lowPriceVal = lowPriceVal;
	}

	public BigDecimal getHighBreakpoint() {
		return this.highBreakpoint;
	}

	public void setHighBreakpoint(BigDecimal highBreakpoint) {
		this.highBreakpoint = highBreakpoint;
	}

	public BigDecimal getLowBreakpoint() {
		return this.lowBreakpoint;
	}

	public void setLowBreakpoint(BigDecimal lowBreakpoint) {
		this.lowBreakpoint = lowBreakpoint;
	}

	public Long getCreateId() {
		return this.createId;
	}

	public void setCreateId(Long createId) {
		this.createId = createId;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Long getUpdateId() {
		return this.updateId;
	}

	public void setUpdateId(Long updateId) {
		this.updateId = updateId;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getIsCancelOrder() {
		return this.isCancelOrder;
	}

	public void setIsCancelOrder(Integer isCancelOrder) {
		this.isCancelOrder = isCancelOrder;
	}

}
